import React from 'react'

const data=[
  {id:"001",name:"张飞"},
  {id:"002",name:"刘备"},
  {id:"003",name:"关羽"}
]

export default function App() {
  return (
    <div>
       <ul>
          {data.map((item)=><li key={item.id}>{item.name}</li>)}
       </ul>
    </div>
  )
}

